import uniHttp from 'rt-uni-utils/request';
import { Iuser,Icode,Isms,Iaccount} from './vo/login';
//定义user类
class User {
	// 微信登录
	login(data){
		return uniHttp.post('/auth/shop/wechat_login',data)
	}
	// 获取验证码
	getCode(data:Icode){
		return uniHttp.get('/auth/common/sendCode',data)
	}
	// 短信登录
	smsLogin(data:Isms){
		return uniHttp.post('/auth/shop/mobileLogin',data)
	}
	// 密码登录
	passwordLogin(data:Iaccount){
		return uniHttp.post('/goods_order/shop/mobile_login', data)
	}
	weiChatLogin(data){
		return uniHttp.post('/auth/shop/wechat_login',data)
	}

}
export const user = new User();
